package cn.wy.system.service.impl;

import cn.wy.basic.service.impl.BaseServiceImpl;
import cn.wy.system.domain.Dictionarytype;
import cn.wy.system.service.DictionarytypeService;
import org.springframework.stereotype.Service;

@Service
public class DictionarytypeServiceImpl extends BaseServiceImpl<Dictionarytype> implements DictionarytypeService {
    /*@Autowired
    private DictionarytypeMapper dictionarytypeMapper;
    @Autowired
    private DictionarydetailMapper dictionarydetailMapper;
    @Override
    public void delete(Long id) {
        List<Dictionarydetail> listdetails = dictionarydetailMapper.findAll();
        List<Long> ids =  new ArrayList<>();
        for (Dictionarydetail listdetail : listdetails) {
            if(listdetail.getTypes_id()==id){
                ids.add(listdetail.getTypes_id());
            }
        }
        dictionarytypeMapper.delete(id);
        dictionarydetailMapper.patchDel(ids);
    }*/

}
